package com.bezdelnick.forum.domain;

/**
 * Created by IntelliJ IDEA.
 * User: Bezdelnick
 * Date: 19.07.12
 * Time: 12:19
 * To change this template use File | Settings | File Templates.
 */
import java.io.Serializable;

/**
 * Bean that is set to every node of tree as user object. This bean has properties that are used to
 * hold values for the cells.
 *
 * @author Matej Knopp
 */
public class ModelBean implements Serializable
{
    private static final long serialVersionUID = 1L;

    private String property1;

    /**
     * Creates the bean.
     *
     * @param s
     *            String that will be suffix of each property.
     */
    public ModelBean(String s)
    {
        property1 = s;
    }

    /**
     * Returns the first property.
     *
     * @return First property
     */
    public String getProperty1()
    {
        return property1;
    }

    /**
     * Sets the value of first property.
     *
     * @param property1
     *            Mew value
     */
    public void setProperty1(String property1)
    {
        this.property1 = property1;
    }

    /**
     * @see java.lang.Object#toString()
     */
    @Override
    public String toString()
    {
        return getProperty1(); // + ", " + getProperty2() + ", " + getProperty3();
    }
}